Optimal. Leaf size=67 \[ \frac{a^2 c^2 \cos ^5(e+f x)}{7 f (c-c \sin (e+f x))^6}+\frac{a^2 c \cos ^5(e+f x)}{35 f (c-c \sin (e+f x))^5} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.135929, antiderivative size = 67, normalized size of antiderivative = 1., number of steps used = 3, number of rules used = 3, integrand size = 26, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.115, Rules used = {2736, 2672, 2671} \[ \frac{a^2 c^2 \cos ^5(e+f x)}{7 f (c-c \sin (e+f x))^6}+\frac{a^2 c \cos ^5(e+f x)}{35 f (c-c \sin (e+f x))^5} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 2736
Rule 2672
Rule 2671
Rubi steps
\begin{align*} \int \frac{(a+a \sin (e+f x))^2}{(c-c \sin (e+f x))^4} \, dx &=\left (a^2 c^2\right ) \int \frac{\cos ^4(e+f x)}{(c-c \sin (e+f x))^6} \, dx\\ &=\frac{a^2 c^2 \cos ^5(e+f x)}{7 f (c-c \sin (e+f x))^6}+\frac{1}{7} \left (a^2 c\right ) \int \frac{\cos ^4(e+f x)}{(c-c \sin (e+f x))^5} \, dx\\ &=\frac{a^2 c^2 \cos ^5(e+f x)}{7 f (c-c \sin (e+f x))^6}+\frac{a^2 c \cos ^5(e+f x)}{35 f (c-c \sin (e+f x))^5}\\ \end{align*}
Mathematica [A] time = 0.600629, size = 117, normalized size = 1.75 \[ -\frac{a^2 \left (\cos \left (\frac{1}{2} (e+f x)\right )-\sin \left (\frac{1}{2} (e+f x)\right )\right ) \left (-70 \sin \left (\frac{1}{2} (e+f x)\right )-35 \sin \left (\frac{3}{2} (e+f x)\right )+7 \sin \left (\frac{5}{2} (e+f x)\right )-35 \cos \left (\frac{1}{2} (e+f x)\right )+14 \cos \left (\frac{3}{2} (e+f x)\right )+\cos \left (\frac{7}{2} (e+f x)\right )\right )}{140 c^4 f (\sin (e+f x)-1)^4} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A] time = 0.092, size = 118, normalized size = 1.8 \begin{align*} 2\,{\frac{{a}^{2}}{f{c}^{4}} \left ( -{\frac{128}{5\, \left ( \tan \left ( 1/2\,fx+e/2 \right ) -1 \right ) ^{5}}}-16\, \left ( \tan \left ( 1/2\,fx+e/2 \right ) -1 \right ) ^{-6}-5\, \left ( \tan \left ( 1/2\,fx+e/2 \right ) -1 \right ) ^{-2}-14\, \left ( \tan \left ( 1/2\,fx+e/2 \right ) -1 \right ) ^{-3}-24\, \left ( \tan \left ( 1/2\,fx+e/2 \right ) -1 \right ) ^{-4}- \left ( \tan \left ( 1/2\,fx+e/2 \right ) -1 \right ) ^{-1}-{\frac{32}{7\, \left ( \tan \left ( 1/2\,fx+e/2 \right ) -1 \right ) ^{7}}} \right ) } \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [B] time = 1.27222, size = 1102, normalized size = 16.45 \begin{align*} \text{result too large to display} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [B] time = 1.33499, size = 537, normalized size = 8.01 \begin{align*} -\frac{a^{2} \cos \left (f x + e\right )^{4} + 4 \, a^{2} \cos \left (f x + e\right )^{3} + 13 \, a^{2} \cos \left (f x + e\right )^{2} - 10 \, a^{2} \cos \left (f x + e\right ) - 20 \, a^{2} -{\left (a^{2} \cos \left (f x + e\right )^{3} - 3 \, a^{2} \cos \left (f x + e\right )^{2} + 10 \, a^{2} \cos \left (f x + e\right ) + 20 \, a^{2}\right )} \sin \left (f x + e\right )}{35 \,{\left (c^{4} f \cos \left (f x + e\right )^{4} - 3 \, c^{4} f \cos \left (f x + e\right )^{3} - 8 \, c^{4} f \cos \left (f x + e\right )^{2} + 4 \, c^{4} f \cos \left (f x + e\right ) + 8 \, c^{4} f +{\left (c^{4} f \cos \left (f x + e\right )^{3} + 4 \, c^{4} f \cos \left (f x + e\right )^{2} - 4 \, c^{4} f \cos \left (f x + e\right ) - 8 \, c^{4} f\right )} \sin \left (f x + e\right )\right )}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F(-1)] time = 0., size = 0, normalized size = 0. \begin{align*} \text{Timed out} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A] time = 2.12167, size = 173, normalized size = 2.58 \begin{align*} -\frac{2 \,{\left (35 \, a^{2} \tan \left (\frac{1}{2} \, f x + \frac{1}{2} \, e\right )^{6} - 35 \, a^{2} \tan \left (\frac{1}{2} \, f x + \frac{1}{2} \, e\right )^{5} + 140 \, a^{2} \tan \left (\frac{1}{2} \, f x + \frac{1}{2} \, e\right )^{4} - 70 \, a^{2} \tan \left (\frac{1}{2} \, f x + \frac{1}{2} \, e\right )^{3} + 91 \, a^{2} \tan \left (\frac{1}{2} \, f x + \frac{1}{2} \, e\right )^{2} - 7 \, a^{2} \tan \left (\frac{1}{2} \, f x + \frac{1}{2} \, e\right ) + 6 \, a^{2}\right )}}{35 \, c^{4} f{\left (\tan \left (\frac{1}{2} \, f x + \frac{1}{2} \, e\right ) - 1\right )}^{7}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]